package org.csmzxy.class2333;

import java.util.Locale;

public class Example05 {
    public static void main(String[] args){
        String s = "Hello";
        char[] charArray = s.toCharArray();
        System.out.println("将字符串"+s+"转换成字符数组后的结果：");
        for (int i = 0;i<charArray.length;i++){
            if (i != charArray.length-1){
                System.out.print(charArray[i] +",");
            }else {
                System.out.println(charArray[i]);
            }
        }
        System.out.println("将int类型的数据12转换为Sting类型，结果为"+String.valueOf(12));
        System.out.println("将字符串"+s+"全部转换城大写之后的结果："+s.toUpperCase());
        System.out.println("将字符串"+s+"全部中成小写之后的结果："+s.toLowerCase());
    }
}
